package com.healthy.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * @author Maple.Chen
 * @date 2020年6月10日
 * @description <p>用户订单实体类</p>
 */
@JsonIgnoreProperties(value = {"handler"})
public class YgOrders implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8681316618420721326L;
	// 订单表主键，UUID
	private String oid;
	// 下单数量
    private String orderAmount;   //订单
    // 订单创建时间
    private Date addTime;
    // 订单状态 (0买家已付款，1卖家已发货，3买家收货完成)
    private Integer status;  
    // 收货地址
    private String recieveAddress;  
    // 交易总额
    private Double totalPrice; 
    // 与用户一对一关联
    private YgUsers ygUsers;
    // 与商品一对一关联
    private YgMerch ygMerch;
    
    public YgOrders(){}
    
	public YgOrders(String oid, String orderAmount, Date addTime, Integer status, String recieveAddress,
			Double totalPrice, YgUsers ygUsers, YgMerch ygMerch) {
		super();
		this.oid = oid;
		this.orderAmount = orderAmount;
		this.addTime = addTime;
		this.status = status;
		this.recieveAddress = recieveAddress;
		this.totalPrice = totalPrice;
		this.ygUsers = ygUsers;
		this.ygMerch = ygMerch;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public String getOrderAmount() {
		return orderAmount;
	}

	public void setOrderAmount(String orderAmount) {
		this.orderAmount = orderAmount;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRecieveAddress() {
		return recieveAddress;
	}

	public void setRecieveAddress(String recieveAddress) {
		this.recieveAddress = recieveAddress;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public YgUsers getYgUsers() {
		return ygUsers;
	}

	public void setYgUsers(YgUsers ygUsers) {
		this.ygUsers = ygUsers;
	}

	public YgMerch getYgMerch() {
		return ygMerch;
	}

	public void setYgMerch(YgMerch ygMerch) {
		this.ygMerch = ygMerch;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "YgOrders [oid=" + oid + ", orderAmount=" + orderAmount + ", addTime=" + addTime + ", status=" + status
				+ ", recieveAddress=" + recieveAddress + ", totalPrice=" + totalPrice + ", ygUsers=" + ygUsers
				+ ", ygMerch=" + ygMerch + "]";
	}
    
}
